//////////////////////////////////////////////////////////////////////////
//	File: CPlague.h
//
//	Author: Steven Seufert
//	Date:	January 13, 2012
//
//	Purpose: To define the Plague class spell 
/////////////////////////////////////////////////////////////////////////

#ifndef	CPLAGUE_H
#define CPLAGUE_H

#include "CSpellBase.h"
#include "Messaging\IListener.h"

class CPlayer;

class CPlague : public CSpellBase, public IListener
{
private:
	int		m_nSoundID[2];			//cast and collision
	float	m_nAge;					// How long since the spell was cast?
	float	m_fTRange;				// how long until the projectile disappears?
	float	m_fDuration;			// How long does the effect last?
	int		m_nDamage;				// How much damage every Rate?
	float	m_fAccruedTime;			// accrued time since damage
	float	m_fRate;				// How often does the enemy take damage?
	// images 
	// animations
public:
	// constructor
	CPlague();

	// destructor
	~CPlague();

	void Cast(CPlayer* caster);

	void Update(float fElapsedTime);
	void Render(void);
	bool CheckCollision(IBaseInterface * pBase );

	void HandleEvent(CEvent* pEvent);
};
#endif